package com.quanquan.user.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 功能描述: 会员等级设置
 *
 * @ClassName: UserLevel
 * @Author: xiaoqianh丶
 * @Date: 2019-03-19 13:29
 * @Version: V1.0
 */
@Data
@Entity
@Table(name = "oo_user_level")
public class UserLevel implements Serializable {

    /**
     * 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     *  等级名称
     */
    @Column(name = "level_name", nullable = false, length = 32)
    private String levelName;

    /**
     * 等级介绍
     */
    @Column(name = "level_info", nullable = false, length = 256)
    private String levelInfo;


    /**
     * 需要达到的积分数
     **/
    @Column(name = "integral_total", length = 32)
    private String integralTotal;


    /**
     * 周期范围
     **/
    @Column(name = "validity_time", length = 32)
    private String validityTime;


    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;

    /**
     * 最新修改时间
     */
    @Column(name = "update_time", nullable = false, length = 32)
    private String updateTime;

    /**
     * 数据是否移除
     */
    @Column(name = "status_remove", columnDefinition = "TINYINT default 0",nullable = false)
    private Integer remove;

    /**
     * 会员等级关系级别 正序
     */
    @Column(name = "level_stratum", columnDefinition = "TINYINT default 0",nullable = false)
    private Integer levelStratum;

    /**
     * 倍率
     */
    @Column(name = "multiply" ,nullable = false)
    private Integer multiply;


}
